#include "Debug.h"
#include "Plane.h"


Plane::Plane(BoundingBox* boundingBox)
{
	bb = boundingBox;
	setUpBounds();
}


Plane::~Plane(void)
{
}

void Plane::getUnscaledUVs(MPoint coords, float2 outUVs)
{	
	outUVs[0] = (float)(coords.x - bb->leftLine);
	outUVs[1] = (float)(coords.y - bb->bottomLine);
	updateBounds(outUVs);
}

double Plane::getWidthToHeightRatio()
{
	return heightBounds / widthBounds;
}

